<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <input type="text" v-model="msg">
    {{ msg }}
    <hr>
    单选：
    <label for="male">男</label>
    <input type="radio" value="男" id="male" v-model="gender">
    <br>
    <label for="female">女</label>
    <input type="radio" value="女" id="female" v-model="gender">
    <br>
    {{ gender }}
    <hr>
    复选框
    <br>
    <label for="lanqiu">篮球</label>
    <input type="checkbox" value="篮球" v-model="hobbies" id="lanqiu">
    <label for="zuqiu">足球</label>
    <input type="checkbox" value="足球" v-model="hobbies" id="zuqiu">
    <label for="piqiu">皮球</label>
    <input type="checkbox" value="皮球" v-model="hobbies" id="piqiu">
    {{hobbies  }}
    <hr>
    单独一个复选框
    <input type="checkbox" v-model="isBeauty">
    {{ isBeauty?'美女':'好人' }}

    <hr>
    下拉框
    <br>
    <select v-model="city" multiple>
      <option value="合肥">合肥</option>
      <option value="芜湖">芜湖</option>
      <option value="池州">池州</option>
      <option value="蚌埠">蚌埠</option>
    </select>
    {{ city }}
  </div>
  <script src="./vue.js"></script>
  <script>
    const a = 10;
    const vm = new Vue({
      el: '#app',
      data: {
        msg: '初始值',
        gender: '女',
        hobbies: ['篮球'],
        isBeauty: true,
        city: ['合肥']
      }
    })
  </script>
</body>
</html>